
package com.android.fitnesscenter.view;

import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

import com.android.fitnesscenter.R;
import com.android.fitnesscenter.utils.Version;

public class AboutBaseActivity extends BaseActivity {

    protected TextView txt_version, txt_new_version;

    @Override
    protected void initTitleBar(String titleStr) {
        super.initTitleBar(titleStr);
        txt_version = (TextView) findViewById(R.id.txt_version);
        txt_version.setText("V" + Version.getVersionName());

        txt_new_version = (TextView) findViewById(R.id.txt_new_version);
        txt_new_version.setOnClickListener(mOnClickListener);
    }

    private OnClickListener mOnClickListener = new OnClickListener() {

        @Override
        public void onClick(View v) {
            switch (v.getId()) {
                case R.id.txt_new_version:
                    titlebarMethod(R.id.txt_new_version);
                    break;
            }
        }
    };

    @Override
    protected void titlebarMethod(int id) {

    }

}
